Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggest how to disable weave errors and warnings #2990

Merged
merged 1 commit into from
Dec 18, 2017
Merged

Conversation

rbruggem
Copy link
Contributor

This applies when running scope deployments without Weave Net.

Fixes #1726.

@@ -165,7 +169,7 @@ func (c *client) AddDNSEntry(fqdn, containerID string, ip net.IP) error {
req.Header.Add("Content-Length", strconv.Itoa(len(data.Encode())))
resp, err := http.DefaultClient.Do(req)
if err != nil {
return err
return fmt.Errorf("%v. %v", err, noWeaveTip)

This comment was marked as abuse.

@rbruggem rbruggem force-pushed the no-weave-tip branch 3 times, most recently from c098d56 to 7c2b54a Compare December 15, 2017 17:38
Copy link
Member

@rade rade left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not especially happy with this, but doing better is probably not worth the effort and complication. So LGTM.

@@ -251,3 +251,7 @@ func weaveCommand(arg ...string) exec.Cmd {
cmd.SetEnv(append(os.Environ(), "DOCKER_API_VERSION="+dockerAPIVersion))
return cmd
}

func errorf(format string, a...interface{}) error {
return fmt.Errorf(format + ". If you are not running Weave Net, you may wish to suppress this warning by launching scope with the `--weave=false` option.", a...)

This comment was marked as abuse.

This applies when running scope deployments without Weave Net.
@rbruggem rbruggem merged commit 7748e7d into master Dec 18, 2017
@rbruggem rbruggem deleted the no-weave-tip branch December 18, 2017 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants